/**
 * Created with IntelliJ IDEA.
 * User: bugger
 * Date: 1/10/14
 * Time: 4:41 PM
 * To change this template use File | Settings | File Templates.
 */
public class FizzBuzz {
  String fizz = "Fizz";
  String buzz = "Buzz";

  public static void main(String[] args){
    FizzBuzz fb = new FizzBuzz();
    for (int i = 1; i <= 100; i +=1){
      if (fb.fizzBusiness(i) & fb.buzzBusiness(i)){
        System.out.println("" + i);
      } else {
        System.out.println("");
      }
    }
  }

  private boolean fizzBusiness(int i){
    if (i%3 == 0){
      System.out.print(fizz);
      return false;
    } else {
      return true;
    }
  }

  private boolean buzzBusiness(int i){
    if (i%5 == 0){
      System.out.print(buzz);
      return false;
    } else {
      return true;
    }
  }
}
